const { defineConfig } = require('@vue/cli-service')
//判断处于生产环境还是开发环境
const isProduction = process.env.NODE_ENV === 'production'
module.exports = defineConfig({
  //解决打包空白
  publicPath: './',
  transpileDependencies: true,
  //打包后禁止用户查看源码
  productionSourceMap: false,
  configureWebpack: {
    //打包后禁止用户查看源码
    devtool: isProduction ? false : "source-map",
  },
})
module.exports = {
  publicPath: './',
  lintOnSave: true,
  configureWebpack: {
    //关闭 webpack 的性能提示
    performance: {
      hints:false
    }

  },
}
/*module.exports = {
  devServer: {
    host: '127.0.0.1',
    port:9999,
    client: {
      webSocketURL: 'ws://127.0.0.1:9999/chat',
    },
    headers: {
      'Access-Control-Allow-Origin': '*',
    }
  }
}*/

